#include <stdlib.h>
#include <stdio.h>

#define MAX_NUM 100

char *name[]={
	   "Illegal month",
	   "January", "February", "March",
	   "April", "May", "June",
	   "July", "August", "September",
	   "October", "November", "December"
};

void show_name(char *name_list[],int num)
{
	int i;

	printf("num=%d\n",num);
	for(i=0;i<num;++i)
	{
		printf("%s\n",*name_list++);
	}
}

int main()
{
	printf("sizeof(name)=%d\n",sizeof(name));
	printf("sizeof(name[0])=%d\n",sizeof(name[0]));
	int cnt = sizeof(name)/sizeof(name[0]);
	show_name(name,cnt);

	return 0;
}
